﻿using MiniFox.Infrastructure;
using MiniFox.Infrastructure.Attributes;
using MiniFox.Platform;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Sys.Core.Models.Queries
{
    /// <summary>
    /// 
    /// </summary>
    [JsonObject]
    public class UserQuery : CommonQuery
    {
        /// <summary>
        /// 
        /// </summary>
        [TargetProperty("LoginName,SecEmail,Cellphone", QueryOperation.Contain)]
        [JsonProperty("keyword")]
        public override string? Keyword { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [TargetProperty("Status", QueryOperation.Equal)]
        [JsonProperty("userStatus")]
        public IdentityStatus? UserStatus { get; set; }
    }
}
